<template>
  <el-tooltip :content="tipTitle">
    <el-button type="danger" icon="el-icon-delete" size="mini" @click="delEvent"></el-button>
  </el-tooltip>
</template>

<script>
/**
 * @author 太阳当空丶赵
 * @date 2023/1/12-0:40
 * @version 1.0.0
 */
export default {
  name: "DeleteButton",
  props: {
    tipTitle: {
      type: String,
      default: "删除"
    }
  },
  methods: {
    delEvent(){
      this.$confirm('即将执行删除操作, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        this.$emit("Delete")
      })
    }
  }
}
</script>
